<?php
class ImportReferees extends Cerad_ExcelReader
{
    protected $map = array(
        'Region'    => 'region',
        'AYSOID'    => 'aysoid',
        'LastName'  => 'lname',
        'FirstName' => 'fname',
     	'NickName'  => 'nname',
        'DOB'       => 'dob',
        'Gender'    => 'gender',
        'HomePhone' => 'phone_home',
        'WorkPhone' => 'phone_work',
        'WPhoneExt' => 'phone_work_ext',
        'CellPhone' => 'phone_cell',
        'Email'     => 'email',
//      'Season'    => 'season',
//      'Status'    => 'status',
    	'Position'  => 'position',
    );
    public $items = array();
	
    public function processRowData($data)
    {
        if (count($this->items) >= 3) return;
        
    	if (!$data->aysoid) return;
            	
    	$item = array(
    	    'aysoid' => $data->aysoid,
    	    'fname'  => $data->fname,
    	    'lname'  => $data->lname
    	);
    	$this->items[] = $data;
    	
    }
}
?>